package com.cssw.fyzb.busi.service.turntable;

import com.cssw.fyzb.core.model.dodb.*;
import com.ydn.dbframe.plugin.activerecord.Page;

import java.math.BigDecimal;
import java.util.List;

public interface TurntableService {

    public BigDecimal getAddPriceToday(Long userId);

    BigDecimal getTurnAddPriceToday(Long userId);

    Integer getTurnNumToday(Long userId);

    List<Turntable> findAll();

    Page<TurntableLog> getTurntableLog(Long userId);

    //添加抽奖日志
    Long addTurnLog(Long userId, Long turntableId, String price, String turntableName, String payType, String win);

    //添加中奖记录
    Long addTurnWinLog(Long logId, Long userId, Long turntableId, String type, String turntableName, String thumb, String status);

    //添加中奖记录
    TurntableWin getTurnAgainWinLog(Long userId);

    //修改中奖记录状态为已处理
    void updateTurnAgainWinLog(TurntableWin turntableWin);

    Page<GzAddPrice> getGzAddPrice(Long userId);

    List<TurntableNumPrice> getTurntableNumPrice();

    TurntableNumPrice getTurnNumPriceByNum(Integer num);

    TurntableNumPriceLog getTurnNumPriceLog(Long userId);

    void updateLog(TurntableNumPriceLog log);

    Long saveLog(Long userId, Integer num, BigDecimal price);
}
